import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    redirect: '/home',
    name: 'App'
  },
  {
    path: '/home',
    name: 'Home',
    component: import('@/views/home.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('@/views/my.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
